package com.gitee.feizns.webtemplate;

import com.gitee.feizns.webtemplate.commons.OrderManager;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableTransactionManagement(order = OrderManager.TRANSACTIONAL_ORDER)
@EnableAsync(order = OrderManager.ASYNC_ORDER)
@MapperScan("com.gitee.feizns.webtemplate.dao.mapper")
@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @ConditionalOnProperty(name = "ff.name"/*prefix = "ff"*//*, name = "name", havingValue = "hello"*/)
    @Bean
    public Test test() {
        return new Test();
    }

    public static class Test {



    }

}
